﻿
@{
    ViewData["Title"] = "CreateGrid";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div style="margin-top:50px;margin-left:30px">
    <h1>首次登录系统，请根据引导完成以下操作步骤！</h1>
</div>
 
<div id="ID-tree-demo" style="margin-top:50px;margin-left:50px"></div>
<div class="layui-form-item" style="margin-top:50px;text-align:center">
    <button type="reset" class="layui-btn layui-btn-primary" lay-submit lay-filter="demo1">上一步</button>
    <button class="layui-btn" lay-submit lay-filter="demo2" onclick='bick()'>确定</button>
</div>
<script>
    layui.use(function () {
        var tree = layui.tree;
        var layer = layui.layer;
        var util = layui.util;


        // 模拟数据
        var data = [{ title: '呼兰区', id: 1, spread: true, children: [{ title: '呼兰街道', id: 1000, spread: true, children: [{ title: '东风社区', id: 10001 }, { title: '文化社区', id: 10002 }] }, { title: '兰河街道', id: 1001 }, { title: '利民街道', id: 1002 }] }];
        // 渲染
        tree.render({
            elem: '#ID-tree-demo',
            data: data,
            showCheckbox: true,  // 是否显示复选框
            onlyIconControl: true,  // 是否仅允许节点左侧图标控制展开收缩
            id: 'demo-id-1',
            isJump: true, // 是否允许点击节点时弹出新窗口跳转
        });
    });
    function bick() {
        location.href = "/GridManagement/GridTeam"
    }
</script>


